package top.wshape1.shiziapi.mock.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

/**
 * 
 * @TableName t_mock
 */
@TableName(value ="t_mock")
@Data
public class Mock implements Serializable {
    /**
     * 主键
     */
    @TableId
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * mock名字
     */
    private String name;

    /**
     * 请求路径
     */
    private String path;

    /**
     * 请求方式
     */
    private String method;

    /**
     * MockJs Template
     */
    private String template;

    /**
     * 响应码
     */
    private Integer responseCode;

    /**
     * 响应头
     */
    private String responseHeaders;

    private Date createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}